﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PMS.Models.Base
{
    ///<summary>
    ///用户表的实体类
    ///</summary>
    [Serializable]
    [Table("BaseUser")]
    public class BaseUser
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        [Column("Id")]
        public int Id { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [Column("UserName")]
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Column("PassWord")]
        public string PassWord { get; set; }
        /// <summary>
        /// 注册时间
        /// </summary>
        [Column("RegisterDate")]
        public System.DateTime RegisterDate { get; set; }
        /// <summary>
        /// 最后一次登陆时间
        /// </summary>
        [Column("LastLoginDate")]
        public System.DateTime LastLoginDate { get; set; }
        /// <summary>
        /// 是否删除 0 未删除 1删除
        /// </summary>
        [Column("IsDel")]
        public int IsDel { get; set; }
        /// <summary>
        /// 更新人,一般为UserId
        /// </summary>
        [Column("UpdateBy")]
        public int UpdateBy { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        [Column("UpdateDate")]
        public System.DateTime UpdateDate { get; set; }
        /// <summary>
        /// 删除人
        /// </summary>
        [Column("DeleteBy")]
        public int DeleteBy { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        [Column("DeleteDate")]
        public System.DateTime DeleteDate { get; set; }
    }
}